public class Simulator {  
    public void playSound(Animal animal) {  
        System.out.println("动物种类名称: " + animal.getAnimalName());
        System.out.println("动物叫声: " + animal.cry());
    }  
}